package com.leyou.item.mapper;

import com.leyou.item.pojo.Spu;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author 岩冰
 * @version 1.0
 * @date:2018/9/29
 */
public interface SpuMapper extends Mapper<Spu> {

    @Update("update tb_spu set saleable=saleable^1 where id=#{id}")
    void updateSpuSaleable(@Param("id") Long id);
}
